package com.zbj.homemade.mybatis;

import com.zbj.homemade.mybatis.conf.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @program: principle
 * @description:
 *
 * 执行者类是mybatis封装jdbc的关键接口，内部牵扯很多封装，咱们只写最简易的
 *
 * @author: Yinn
 * @create: 2019-01-11 16:50
 **/
public interface Executor {

    int update(MappedStatement ms, Object[] parameter) throws SQLException;

    <E> List<E> query(MappedStatement ms, Object[] parameter) throws SQLException;

}
